/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package byblos.apresentacao.site;

import byblos.apresentacao.idioma.InterceptadorIdioma;
import byblos.negocio.Idioma;
import byblos.negocio.informacoes.Informacoes;
import byblos.persistencia.DAO;
import org.vraptor.annotations.Component;
import org.vraptor.annotations.In;
import org.vraptor.annotations.InterceptedBy;
import org.vraptor.annotations.Out;
import org.vraptor.annotations.Parameter;

/**
 *
 * @author Marco Aurélio
 */
@Component
@InterceptedBy(InterceptadorIdioma.class)
public class SiteInformacoesComponent {

    @Out
    private Informacoes informacoes;
    @In
    private Idioma idioma;
    @Out
    @Parameter
    private int tipo;

    public String visualizar() {
        informacoes = new DAO().localizar(Informacoes.class, "InformacoesPorIdioma", idioma);
        return "ok";
    }
}
